from django.conf.urls import url
from . import views
urlpatterns = [
    # 注册不传参数的类视图
    url(r'^books/$', views.BooksAPIView.as_view()),
    url(r'^books/(?P<pk>\d+)/$', views.BookAPIView.as_view()),
]